package com.home.free.util;

/**
 * 分页公共页面
 * @author gaotianjie
 */
public class QueryParam {
    /**
     * 分页的数量
     */
    public int pageSize;

    /**
     * 分页的页码
     */
    public int pageNumber;

    /**
     * 起始位置
     */
    public int startRecord;

    public int getStartRecord() {
        return startRecord;
    }

    public void setStartRecord(int startRecord) {
        this.startRecord = this.pageSize * (this.pageNumber - 1);
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }
}
